package com.leonse.stock;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;

/**
 * 统一业务系统2.0接口对接服务
 *
 * @author leonse
 * @date 2021/1/13 17:36
 **/
@SpringCloudApplication
//@SpringBootApplication
@MapperScan(basePackages = "com.leonse.stock.mapper")
//@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) // 取消数据源的自动创建。使用我们自己配置的seata代理的数据源
//@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
public class StockApplication {

    public static void main(String[] args) {
        // SpringBoot 项目启动，完成的事一个Spring容器的初始化过程
        SpringApplication.run(StockApplication.class, args);
    }

}
